package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.MachineryInfoDao;
import io.renren.modules.generator.entity.MachineryInfoEntity;
import io.renren.modules.generator.service.MachineryInfoService;



@Service("machineryInfoService")
public class MachineryInfoServiceImpl implements MachineryInfoService {
	@Autowired
	private MachineryInfoDao machineryInfoDao;
	
	@Override
	public MachineryInfoEntity queryObject(Integer id){
		return machineryInfoDao.queryObject(id);
	}
	
	@Override
	public List<MachineryInfoEntity> queryList(Map<String, Object> map){
		return machineryInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return machineryInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(MachineryInfoEntity machineryInfo){
		machineryInfoDao.save(machineryInfo);
	}
	
	@Override
	public void update(MachineryInfoEntity machineryInfo){
		machineryInfoDao.update(machineryInfo);
	}
	
	@Override
	public void delete(Integer id){
		machineryInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		machineryInfoDao.deleteBatch(ids);
	}
	
}
